Minimum guaranteed hours
Rounds the calculated hours for a segment up to a guaranteed minimum; for example, a worker gets called in after hours for a maintenance item, then goes home after 1 hour, but is guaranteed a minimum of 4hours pay. Hours are not restricted if they go past the specified minimum.
Details
Rule Type
Time
Execution
After shift
Parameters
Name | DataType | DefaultValue | Description |
---|---|---|---|
Switch | string | The field which enables this rule. Punches for the current day will be searched for this value as the trigger that the rule should be applied (e.g. "Call-IN") | |
GuaranteedHours | float | The number of hours to guarantee if the actual worked hours are less. If the actual worked hours are more, the employee receives the higher worked amount. | |
HourType | lookup | Choose the earnings code to use for the offsetting entry. For example, if the actual worked hours are 1.50, and the guaranteed minimum is 4.0, then 2.5 hours will be generated against this earnings code |
Decision Tree
Rule processing begins in the cell R1:Level1 and proceeds right/down. Any IF statement which results in a DONE step terminates the rule immediately.
Line# | Level1 | Level2 | Level3 | Comment |
---|---|---|---|---|
1 | Start | |||
2 | IF(PUNCH(PayDate , Any , Switch ) != 1 ) → | ↓ | Do we have the switch enabled that triggers a minimum guaranteed hours? Get this from the first IN of the day | |
3 | ↓ | DONE | ||
4 | IF(CALC(hours_worked.day ) >= GuaranteedHours ) → | ↓ | Are the worked hours greater than the minimum guaranteed? | |
5 | ↓ | DONE | ||
6 | SET(makeup = SUBTRACT(GuaranteedHours , CALC(hours_worked.day ))) | Calculate the difference to makeup the minimum | ||
7 | SET( = INSERT_PUNCH(PayDate , HourType , makeup , GH )) | Insert a makeup punch for the extra hours using the specified earnings code | ||
8 | DONE |